package com.shiro;

import org.apache.shiro.authc.AuthenticationToken;

public class UsernameAuth implements AuthenticationToken {
    private String username;

    public UsernameAuth(String username) {
        this.username = username;
    }

    public UsernameAuth() {

    }

    @Override
    public Object getPrincipal() {
        return username;
    }

    @Override
    public Object getCredentials() {
        return username;
    }
}
